import request from '@/utils/request';
import { LoginParamsType } from "@/model/LoginParamsType";

export async function queryInfo(): Promise<any> {
    return request({
        url: '/adminuser/info',
        method: 'post'
    });
}
export async function getUserRouter(): Promise<any> {
    return request({
        url: '/adminuser/menu-router',
        method: 'post'
    });
}

export async function accountLogin(params: LoginParamsType): Promise<any> {
    return request({
        url: '/adminuser/login',
        method: 'POST',
        data: params,
    });
}
export async function refresh(params): Promise<any> {
    return request({
        url: '/adminuser/refreshtoken',
        method: 'POST',
        data: params,
    });
}
